package com.liuqianfei.markme.rules;

import java.util.ArrayList;
import java.util.List;

public class Rule
{
    public String name;
    public boolean enabled;
    public IAction fn;
    public List<String> alts = new ArrayList<>();

    public Rule()
    {
    }

    public Rule(String name, IAction fn)
    {
        this.name = name;
        this.fn = fn;
    }

    public Rule(String name, boolean enabled, IAction fn, List<String> alts)
    {
        this.name = name;
        this.enabled = enabled;
        this.fn = fn;
        if (null != alts)
            this.alts = alts;
    }
}
